/*
*  CEGLESRenderNode.h
*  
*
*  Created by Alexander Trutchenko on 11/02/12.
*  Copyright 2012 LID. All rights reserved.
*
*/

#ifndef __GLESRenderNode_h__
#define __GLESRenderNode_h__


#include "cocos2d.h"


////////////////////////////////////////////////////////
//
class GLESDebugDraw;
class b2World;

namespace cocosext {

////////////////////////////////////////////////////////
//
/** CEGLESRenderNode
 *  Draw with GLESDebugDraw
*/
////////////////////////////////////////////////////////

class CEGLESRenderNode : public cocos2d::CCNode 
{
	GLESDebugDraw* _debugDraw;
	b2World* _world;
	
private:
	CEGLESRenderNode(b2World* world): _debugDraw(NULL), _world(world) {;}

public:
    ~CEGLESRenderNode();
    
    // static constructor
    static cocos2d::CCNode* node(b2World* world, float ptmRation);
    
public:
	//Cocos2d functions
	virtual bool init(float ptmRation);

    virtual void draw();
}; // class GameLayer

} // namespace cocosext


#endif // __GLESRenderNode_h__
